package com.hutiao.snowhb.entities;

import java.util.Date;

public class SnowMMComment {
	
	private int mcid;
	
	private int mmid;
	
	private String reviewer;
	
	private UserInfo reviewerInfo;
	
	private int starValue;
	
	private String star;
	
	private String content;
	
	private Date createTime;

	public int getMcid() {
		return mcid;
	}

	public void setMcid(int mcid) {
		this.mcid = mcid;
	}

	public int getMmid() {
		return mmid;
	}

	public void setMmid(int mmid) {
		this.mmid = mmid;
	}

	public String getReviewer() {
		return reviewer;
	}

	public void setReviewer(String reviewer) {
		this.reviewer = reviewer;
	}

	public UserInfo getReviewerInfo() {
		return reviewerInfo;
	}

	public void setReviewerInfo(UserInfo reviewerInfo) {
		this.reviewerInfo = reviewerInfo;
	}

	public int getStarValue() {
		return starValue;
	}

	public void setStarValue(int starValue) {
		this.starValue = starValue;
		
		if (this.starValue < 1) {
			star = "05";
		} else if (this.starValue >= 1 && this.starValue < 1.5) {
			star = "10";
		} else if (this.starValue >= 1.5 && this.starValue < 2) {
			star = "15";
		} else if (this.starValue >= 2 && this.starValue < 2.5) {
			star = "20";
		} else if (this.starValue >= 2.5 && this.starValue < 3) {
			star = "25";
		} else if (this.starValue >= 3 && this.starValue < 3.5) {
			star = "30";
		} else if (this.starValue >= 3.5 && this.starValue < 4) {
			star = "35";
		} else if (this.starValue >= 4 && this.starValue < 4.5) {
			star = "40";
		} else if (this.starValue >= 4.5 && this.starValue < 5) {
			star = "45";
		} else if (this.starValue >= 5) {
			star = "50";
		}
		
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getStar() {
		return star;
	}

	public void setStar(String star) {
		this.star = star;
	}

}
